import { apiRequest, sysRequest } from '@/utils/HttpRequest';

export function roleMenuByList(roleId: number) {
  return apiRequest.get<number[]>('permission/roleDistributionList', {
    id: roleId,
  });
}
export function roleMenuEdit(params: any) {
  return sysRequest.post('role/menu/edit', params);
}
export async function roleDistributionNav(params: any) {
  return apiRequest.post<API.BaseResult>(
    'permission/roleDistributionNav',
    params,
  );
}
